const routes = [
  {
    path: '',
    meta: {
      keepAlive: false,
      requiresAuth: true // 要求验证的页面,在此情况下其子页面也会被验证.
    },
    component: () => import('../Index'),
    children: [

      {
        path: '/groupList',
        component: () => import('../views/business/groupList.vue'),
        meta: {
          title: '分组管理',
        }
      },
      {
        path: '/groupInfo',
        component: () => import('../views/business/groupInfo.vue'),
        meta: {
          title: '分组详情',
          parent: '/groupList'
        }
      },
      {
        path: '/addGroup',
        component: () => import('../views/business/addGroup.vue'),
        meta: {
          title: '分组',
          parent: '/groupList'
        }
      },
      {
        path: '/packageList',
        component: () => import('../views/package/packageList.vue'),
        meta: {
          title: '套餐管理',
        }
      },
      {
        path: '/packageInfo',
        component: () => import('../views/package/packageInfo.vue'),
        meta: {
          title: '套餐详情',
          parent: '/packageList'
        }
      },
      {
        path: '/addPackage',
        component: () => import('../views/package/addPackage.vue'),
        meta: {
          title: '套餐',
          parent: '/packageList'
        }
      }
    ]
  }
]

export default routes
